package com.cssl.util;

public class InfoCode {

    public static final int OK = 200;                  // 请求成功
    public static final int NAMEORPASSWORD_FAILED = 401;   // 用户名或密码错误
    public static final int CREATED = 201;             // 创建成功
    public static final int ISEXIT = 202;             // 团购存在
    public static final int NO_CONTENT = 204;          // 删除成功，无返回内容
    public static final int BAD_REQUEST = 403;         // 请求参数错误
    public static final int UNAUTHORIZED = 401;        // 未授权和权限不足
    public static final int UNLOGIN = 402;        // 未登录
    public static final int NOT_FOUND = 404;           // 未找到
    public static final int CONFLICT = 409;            // 请求冲突
    public static final int UNPROCESSABLE_ENTITY = 422;// 验证码错误
    public static final int VALIDATION_PASSED = 423;   // 验证码正确
    public static final int QUERY_EMPTY = 204;         // 查询结果为空
    public static final int FAILED = 400; // 请求失败
    public static final int REQUEST_TIMEOUT = 408;     // 请求过期
    public static final int GOODS_NUMBER_UNENOUGH=411; //库存不足


    public static final String MESSAGE_OK = "请求成功";
    public static final String MESSAGE_NAMEORPASSWORD_FAILED = "用户名或密码错误";                  // 用户名或密码错误
    public static final String MESS_GOODS_NUMBER_UNENOUGH="库存不足"; //库存不足
    public static final String MESS_ISEXIT = "团购订单已存在";             // 团购存在

    public static final String MESSAGE_UNLOGIN = "未登录";
    public static final String MESSAGE_FAILED = "请求失败";
    public static final String MESSAGE_CREATED = "创建成功";
    public static final String MESSAGE_NO_CONTENT = "删除成功";
    public static final String MESSAGE_BAD_REQUEST = "请求参数错误";
    public static final String MESSAGE_UNAUTHORIZED = "未授权";
    public static final String MESSAGE_NOT_FOUND = "未找到";
    public static final String MESSAGE_CONFLICT = "请求冲突";
    public static final String MESSAGE_UNPROCESSABLE_ENTITY = "验证码错误";
    public static final String MESSAGE_VALIDATION_PASSED = "验证码正确";
    public static final String MESSAGE_QUERY_EMPTY = "查询结果为空";
    public static final String REQUEST_TIMEOUT_MESS = "查询结果为空";

}
